<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title></title>
    <link rel="stylesheet" type="text/css" href="${path}/css/main.css">
	<link rel="stylesheet" type="text/css" href="${path}/css/mainTable.css">
	<script type="text/javascript" language="javascript" src="${path}/js/calendar/js/WdatePicker.js"></script>
	<script type="text/javascript" language="javascript" src="${path}/js/jquery.js"></script>
	<script type="text/javascript" language="javascript" src="${path}/js/jquery.blockUI.js"></script>
  </head>
  <body>
    <div>
    	<form id="userCallinForm" name="userCallinForm" method="post" action="">
    		<p>分省数据</p>
    		<table>
    			<thead>
    				<tr>
    					<th>业务长号码</th>
    					<th>渠道名称</th>
    					<th>手机号码</th>
    					<th>省份</th>
    					<th>城市</th>
    					<th>状态码</th>
    					<th>呼入时间</th>
    				</tr>
    			</thead>
    			<c:choose>
    				<c:when test="${userCallinVoList != null && fn:length(userCallinVoList) > 0}">
    					<c:forEach var="userCallinVo" items="${userCallinVoList }" varStatus="list">
    						<tr style="${list.index%2 != 0 ? 'background-color: #fea;' : 'background-color: #fff;' }">
    							<td>${userCallinVo.sp_number }</td>
    							<td>${userCallinVo.lower_name }</td>
    							<td>${userCallinVo.mobile }</td>
    							<td>${userCallinVo.province }</td>
    							<td>${userCallinVo.city }</td>
    							<td>
    								<c:if test="${userCallinVo.state_code == 0 }">无计费记录</c:if>
    								<c:if test="${userCallinVo.state_code == 1 }">业务不存在或已停用</c:if>
    								<c:if test="${userCallinVo.state_code == 2 }">黑名单用户</c:if>
    								<c:if test="${userCallinVo.state_code == 3 }">在屏蔽时间内拨打业务</c:if>
    								<c:if test="${userCallinVo.state_code == 4 }">业务屏蔽省</c:if>
    								<c:if test="${userCallinVo.state_code == 5 }">业务屏蔽市</c:if>
    								<c:if test="${userCallinVo.state_code == 6 }">自消费日限</c:if>
    								<c:if test="${userCallinVo.state_code == 7 }">自消费月限</c:if>
    								<c:if test="${userCallinVo.state_code == 8 }">用户拨打次数限制</c:if>
    								<c:if test="${userCallinVo.state_code == 9 }">日限</c:if>
    								<c:if test="${userCallinVo.state_code == 10 }">月限</c:if>
    								<c:if test="${userCallinVo.state_code == 11 }">分省业务总量限制</c:if>
    								<c:if test="${userCallinVo.state_code == 12 }">短号码业务总量限制</c:if>
    							</td>
    							<td>${userCallinVo.add_date }</td>
    						</tr>
    					</c:forEach>
    				</c:when>
    				<c:otherwise>
    					<tr>
    						<td>暂无呼入详情数据</td>
    					</tr>
    				</c:otherwise>
    			</c:choose>
    		</table>
    	</form>
    </div>
  </body>
</html>